import React from 'react'
import viewRouterUtils from '@/ui/antd/service/router/utils/viewRouterUtils'
import ViewRouteDto from '@/ui/antd/service/router/types/model/dto/ViewRouteDto'

// 模块
const routes = [
	{
		path: '/captcha/application',
		title: '验证码应用',
		icon: 'fa-regular fa-square-check',
		element: viewRouterUtils.lazyLoad(
			React.lazy(() => import('@/ui/antd/pages/main/view/captcha/CaptchaApplicationList/CaptchaApplicationList')),
		),
	},
	{
		path: '/captcha/component/config',
		title: '验证码组件配置',
		icon: 'fa-solid fa-gear',
		element: viewRouterUtils.lazyLoad(
			React.lazy(() => import('@/ui/antd/pages/main/view/captcha/CaptchaComponentConfigList/CaptchaComponentConfigList')),
		),
	},
	{
		path: '/captcha/item/config',
		title: '验证码配置',
		icon: 'fa-solid fa-gears',
		element: viewRouterUtils.lazyLoad(
			React.lazy(() => import('@/ui/antd/pages/main/view/captcha/CaptchaItemConfigList/CaptchaItemConfigList')),
		),
	},
	{
		path: '/captcha/item',
		title: '验证码',
		icon: 'fa-solid fa-user-check',
		element: viewRouterUtils.lazyLoad(
			React.lazy(() => import('@/ui/antd/pages/main/view/captcha/CaptchaItemList/CaptchaItemList')),
		),
	},
] as ViewRouteDto[]

export default routes
